
export declare namespace RespDataType {
  export interface MenuItem {
    id: number,
    pid: number,
    name: string,
    title: string,
    icon: string,
    condition: string,
    remark: string,
    menuType: number,
    weigh: number,
    isHide: number,
    isCached: number,
    isAffix: number,
    path: string,
    redirect: string,
    component: string,
    isIframe: number,
    isLink: number,
    linkUrl: string,
    children: MenuItem[]
  }

  /**
   * 菜单列表响应内容
   */
  export interface MenuListResp {
    rules: MenuItem[]
  }


  export interface MenuInfoResp{
    rule: Omit<MenuItem, "children">,
    roleIds: number[],
  }
}

export declare namespace RequestDataType {
  export interface CreateMenuItem {
    id: number;
    parentId: number;
    menuName: string;
    menuType: string;
    parentName: string;
    menuSort: number;
    linkUrl: string;
    isHide: number;
    isLink: number;
    isIframe: number;
  }
}
